function open(url) {
  let el = document.createElement('a');
  el.href = url;
  el.target = '_blank';
  el.hidden = true;
  el.rel = 'noopener noreferrer';

  document.body.appendChild(el);
  el.click();
  document.body.removeChild(el);
}

export default open;
